﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true" Inherits="Kiiro.SiteDefinition.Core.AllSubNavigationItems, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="WPP" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="K" TagName="Pager" Src="~/_controltemplates/Kiiro/Pager.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <asp:Panel ID="pnlPanel" runat="server" CssClass="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <table class="table-nav-items" width="100%">
                  <tr>
                    <th class="title">
                      <span class="sort">
                        <asp:LinkButton ID="btnTitle" runat="server" OnClick="SortBy_Click" CommandArgument="Title"
                          Text="Title" />
                        <asp:Literal ID="litTitleSort" runat="server" />
                      </span>
                    </th>
                    <th class="targetUrl">
                      <span class="sort">
                        <asp:LinkButton ID="btnTargetUrl" runat="server" OnClick="SortBy_Click" CommandArgument="TargetUrl"
                          Text="Target Url" />
                        <asp:Literal ID="litTargetUrlSort" runat="server" />
                      </span>
                    </th>
                    <th class="siteLevel" id="thSiteLevel" runat="server">
                      <span class="sort">
                        <asp:LinkButton ID="btnSiteLevel" runat="server" OnClick="SortBy_Click" CommandArgument="SiteLevel"
                          Text="Level" />
                        <asp:Literal ID="litSiteLevelSort" runat="server" />
                      </span>
                    </th>
                    <th class="sequence">
                      <span class="sort">
                        <asp:LinkButton ID="btnSequence" runat="server" OnClick="SortBy_Click" CommandArgument="Sequence"
                          Text="Sequence" />
                        <asp:Literal ID="litSequenceSort" runat="server" />
                      </span>
                    </th>
                    <th class="isVisible">
                      <span class="sort">
                        <asp:LinkButton ID="btnIsVisible" runat="server" OnClick="SortBy_Click" CommandArgument="IsVisible"
                          Text="Visible" />
                        <asp:Literal ID="litIsVisibleSort" runat="server" />
                      </span>
                    </th>
                    <th class="actions">
                    </th>
                  </tr>
                </table>
              </div>
              <div id="generic-table">
                <table class="table-nav-items" width="100%">
                  <asp:Repeater ID="rptCustomItems" runat="server" OnItemDataBound="CustomItems_ItemDataBound">
                    <ItemTemplate>
                      <tr class="<asp:Literal runat='server' id='litItemRowClass' />">
                        <td class="title">
                          <h2>
                            <asp:HyperLink ID="hypDisplayItem" runat="server" />
                          </h2>
                        </td>
                        <td class="targetUrl">
                          <asp:Label ID="lblTargetUrl" runat="server" />
                        </td>
                        <td class="siteLevel" id="tdSiteLevel" runat="server">
                          <asp:Label ID="lblSiteLevel" runat="server" />
                        </td>
                        <td class="sequence">
                          <asp:Label ID="lblSequence" runat="server" />
                        </td>
                        <td class="isVisible">
                          <asp:Label ID="lblIsVisible" runat="server" />
                        </td>
                        <td class="actions">
                          <h2>
                            <asp:HyperLink ID="hypEditItem" runat="server" Text="Edit" Visible="true" /><br />
                            <asp:LinkButton ID="btnDeleteItem" runat="server" Text="Delete" Visible="true" OnClick="btnDeleteItem_Click" />
                          </h2>
                        </td>
                      </tr>
                    </ItemTemplate>
                  </asp:Repeater>
                </table>
              </div>
            </div>
          </asp:Panel>
          <K:Pager id="pager" runat="server" />
        </div>
        <div class="panel-pad" style="display: none">
          <div class="panel">
            <WPP:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main" />
          </div>
        </div>
      </div>
    </div>
  </div>
</asp:Content>
